/**
 * Created by user on 2018/5/21.
 */
import React, { Component } from 'react'
import { connect } from 'react-redux'

class MaterialVideo extends Component {
  render() {
    const { showVideo } = this.props
    return (
      <div className="live_video_mask" style={{ display: showVideo ? 'block' : 'none' }}>
        <video id="materialVideo" className="video" src=""
        ></video>
      </div>
    )
  }
}
const mapStateToProps = (state) => {
  return {
    showVideo: state.MaterialState.showVideo
  }
}

export default connect(mapStateToProps)(MaterialVideo)
